package tests.pojos;

import tester.cobertura.Instrument;

public class Address{
	/**
	 * 
	 */
	private int num;
	private String street;
	private String city;
	private int zip;
	private String state;
	
	public Address(){}
	
	public Address(int num, String street, String city, int zip, String state){
		this.num = num;
		this.street = street;
		this.city = city;
		this.zip = zip;
		this.state = state;
	}
	
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public int getZip() {
		return zip;
	}
	public void setZip(int zip) {
		this.zip = zip;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	
	public boolean isResidentOf(String state){
		if(this.state.equals(state))
			return true;
		else
			return false;
	}
	
	public String toString(){
		String returnString = "";
		returnString += num + " " + street + "\n" + city + ", " + state +
			"\n" + zip;
		return returnString;
	}
}
